﻿using System.ServiceModel;
using Sinacor.Infra.Common.Exceptions;
using Sinacor.Infra.Service.ExceptionHandling;
using Sinacor.Infra.Service.Security.Services;


namespace Sinacor.Servico.Bovespa.Custodia.Service.ServiceContract
{
    [ExceptionShielding]
    [ServiceContract(Namespace = "http://www.bovespa.com.br/Sinacor.Servico.Bovespa.Custodia.Service.ServiceContract", Name = "ICustodia", SessionMode = SessionMode.Allowed)]
    public interface ICustodia
    {
        /// <summary>
        /// Historico:
        /// Data : 19/12/2007
        /// Autor: Ludmilla Modesto 
        /// Obs.: Criado. Metodo que retorna a posicao do cliente na custodia
        /// </summary>
        /// <returns></returns>
        [TransactionRequired]
        [FaultContract(typeof(Sinacor.Infra.Common.Exceptions.FaultContracts.BusinessFault))]
        [FaultContract(typeof(Sinacor.Infra.Common.Exceptions.FaultContracts.ValidationFault))]
        [FaultContract(typeof(Sinacor.Infra.Common.Exceptions.FaultContracts.GeneralFault))]
        [FaultContract(typeof(Sinacor.Infra.Common.Exceptions.FaultContracts.InvalidSessionFault))]
        [FaultContract(typeof(Sinacor.Infra.Common.Exceptions.FaultContracts.LicensingFault))]
        [FaultContract(typeof(Sinacor.Infra.Common.Exceptions.FaultContracts.AccessIsDeniedFault))] 
        [OperationContract(IsTerminating = false, IsInitiating = true, IsOneWay = false, AsyncPattern = false, Action="ConsultarPosicaoCustodia")]
        Sinacor.Servico.Bovespa.Custodia.Service.DataContract.Response.PosicaoCustodiaResponse ConsultarPosicaoCustodia(Sinacor.Servico.Bovespa.Custodia.Service.DataContract.Request.ConsultarPosicaoCustodiaRequest request);



    }
}
